"""
RagFlow 客户端 GUI 返回主页功能模块
"""

from PySide6.QtWidgets import QMessageBox, QWidget, QVBoxLayout, QPushButton
from ragflow_client.gui.features.base_feature import BaseFeature


class HomeFeature(BaseFeature):
    """返回主页功能类"""
    
    def __init__(self, parent=None):
        """初始化返回主页功能"""
        super().__init__(parent)
    
    def execute(self):
        """执行返回主页功能"""
        # 创建一个简单的提示窗口
        content_widget = QWidget()
        layout = QVBoxLayout(content_widget)
        
        # 添加提示信息
        message = QMessageBox()
        message.setIcon(QMessageBox.Information)
        message.setText("您已经在主页")
        message.setWindowTitle("提示")
        message.exec_()
